    <script>
        var {{targetName}} = document.getElementById('{{divName}}');
        {{figure | raw}}
        {{plotFunction}}
        {{eventHandlerFunction | raw}}
    </script>
